#include<iostream>
#include <signal.h>
#include<unistd.h>
using namespace std;


int main()
{
    sigset_t sig;
    sigemptyset(&sig);
    sigaddset(&sig,2);
    sigaddset(&sig,40);


    sigprocmask(SIG_BLOCK,&sig,nullptr);
    while(true)
    {
        cout<<"我还活着"<<endl;
        sleep(2);
    }
    return 0;
}